<script>

function backToEdit(){
	$("#mainform").prop("action", "/it_center/CenterInformations/edit");
	return $("#mainform").submit();
}

</script>
<section id="content">
<center><H1>Thay đổi thông tin liên hệ</H1></center>
<form id="mainform" method="post" action="/it_center/CenterInformations/info_update">
<input type="hidden" name="centerId" value="<?php echo $centerId;?>" />
<input type="hidden" name="centerName" value="<?php echo $centerName;?>" />
<input type="hidden" name="centerTel" value="<?php echo $centerTel;?>" />
<input type="hidden" name="centerMobile" value="<?php echo $centerMobile;?>" />
<input type="hidden" name="centerEmail" value="<?php echo $centerEmail;?>" />
<input type="hidden" name="centerAddress" value="<?php echo $centerAddress;?>" />
<input type="hidden" name="centerMap" value="<?php echo $centerMap;?>" />

<table id="edit_table">
	<tr>
		<td class="edit_column" width="170">Tên trung tâm</td>
		<td>
			<?php echo $centerName; ?>
		</td>
	</tr>
	<tr>	
		<td class="edit_column">Số điện thoại</td>
		<td>
			<?php echo $centerTel;?>
		</td>
	</tr>
	<tr>	
		<td class="edit_column">Số di động</td>
		<td>
			<?php echo $centerMobile;?>
		</td>
	</tr>
	<tr>	
		<td class="edit_column">Email</td>
		<td>
			<?php echo $centerEmail;?>
		</td>
	</tr>
	<tr>	
		<td class="edit_column" style="vertical-align: top;">Địa chỉ</td>
		<td>
			<textarea disabled id="centerAddress" name="centerAddress" style="width: 99%;" rows="2"><?php echo $centerAddress;?></textarea>
		</td>
	</tr>
	<tr>
		<td class="edit_column" style="vertical-align: top;">Bảng đồ</td>
		<td>
		<textarea disabled id="centerMap" name="centerMap" style="width: 99%;" rows="10"><?php echo html_entity_decode($centerMap); ?></textarea>
		</td>
	</tr>
	<tr>
		<td colspan="2" style="text-align: center;">
			<button type="submit">Hoàn tất</button>
			<button type="button" onclick="backToEdit()">Quay lại</button>
		</td>
	</tr>
</table>
</form>
</section>